unit uImpressaoContrato;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, ExtCtrls;

type
  TfImpressaoContrato = class(TForm)
    redtContrato: TRichEdit;
    pnl1: TPanel;
    btn1: TButton;
    btn2: TButton;
    dlgPntSet1: TPrinterSetupDialog;
    procedure btn2Click(Sender: TObject);
    procedure btn1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  fImpressaoContrato: TfImpressaoContrato;

implementation

{$R *.dfm}

procedure TfImpressaoContrato.btn1Click(Sender: TObject);
begin

  redtContrato.Print('Contrato');
end;

procedure TfImpressaoContrato.btn2Click(Sender: TObject);
begin
  dlgPntSet1.Execute();
end;

end.
